//
//  HouseCKCell.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/5/4.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "HouseCKCell.h"

@implementation HouseCKCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
     
        
        _louTF = [[UITextField alloc] initWithFrame:CGRectMake(20, 30, 40, 25)];
        
        _weiLab= [[UILabel alloc] init];
        _weiLab.text = @"主售房源位置";
        _weiLab.font = [UIFont systemFontOfSize:14];
        _weiLab.textColor =[UIColor blackColor];
        [self addSubview:_weiLab];
        [_weiLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(120, 18));
            make.top.equalTo(self.mas_top).offset(15);
            make.left.equalTo(self.mas_left).offset(20);
        }];
        
        
        _louTF = [[UITextField alloc] init];
        _louTF.borderStyle = UITextBorderStyleRoundedRect;
        //设置输入框的背景颜色
        //_louTF.delegate = self;
        _louTF.tag = self.tag;
        _louTF.backgroundColor = [UIColor whiteColor];
        _louTF.font = [UIFont systemFontOfSize:14];
        _louTF.textColor = [UIColor blackColor];
        [self addSubview:_louTF];
        [_louTF mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(60, 30));
            make.top.equalTo(self.mas_top).offset(10);
            make.left.equalTo(self.mas_left).offset(115);
        }];
        
        
        
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
